#ifndef INQUIREMEMBERPROFILE_H
#define INQUIREMEMBERPROFILE_H

#include <QWidget>
#include "personmember.h"

class InquireSql;

namespace Ui {
class InquireMemberProfile;
}

class InquireMemberProfile : public QWidget
{
    Q_OBJECT
    
public:
    explicit InquireMemberProfile(QWidget *parent = 0);
    ~InquireMemberProfile();
    void changelineEditInquire(const QString &);
    bool eventFilter(QObject *target, QEvent *event);
    
protected:
    void keyPressEvent(QKeyEvent *);
//    void mousePressEvent(QMouseEvent *);

signals:
    void displayMemberInformation(QString);

private slots:
    void on_lineEditInquireMemberProfile_textChanged(const QString &arg1);

    void on_pushButtonDisplayAll_clicked();

    void on_tableWidgetMemberProfile_cellDoubleClicked(int row, int column);

    void on_pushButtonSelete_clicked();

private:
    void displayMemberProfile(const QString &);
    void setTableWidgetColor();
    void setTableWidgetHeaderStyle();
    Ui::InquireMemberProfile *ui;
    InquireSql *m_sql;
    memberList m_currentTableWidgetList;
    bool m_selectAllLineEditInquireMemberProfileText;
};

#endif // INQUIREMEMBERPROFILE_H
